package com.sansan.qiangji.controller.warehouse;

import com.sansan.qiangji.realize.warehouse.StackerTaskMoveReal;
import com.sansan.qiangji.resultVO.ResultVO;
import com.sansan.qiangji.utils.ResultVOUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@CrossOrigin()
@RequestMapping("/stackerTaskMove")
@RestController
@Slf4j
public class StackerTaskMoveController {
    private StackerTaskMoveReal stackerTaskMoveReal;

    @Resource
    public void setStackerTaskMoveReal(StackerTaskMoveReal stackerTaskMoveReal){
        this.stackerTaskMoveReal = stackerTaskMoveReal;
    }

    @PostMapping("/findByStackerTaskMoveCode")
    public ResultVO<Object> findByStackerTaskMoveCode(@RequestParam(value = "stackerTaskMoveCode") String stackerTaskMoveCode){
        return ResultVOUtil.success(stackerTaskMoveReal.findByStackerTaskMoveCode(stackerTaskMoveCode));
    }
}
